//
//  WMSDKLogTool.h
//  WonderPurchaseSDK
//
//  Created by zero on 2021/7/22.
//

#import <Foundation/Foundation.h>

#import <WonderAnalyticsSDK/WABMSAnalytics.h>

NS_ASSUME_NONNULL_BEGIN

@interface WMSDKLogTool : NSObject

+ (instancetype)sharedTool;


/// 初始化BMSSDK
/// @param appName BMS App Name
/// @param channel BMS App Channel
- (void)setupBMSAnalyticsWithAppName:(NSString *)appName Channel:(NSString *)channel;

/// 添加一条内购打点记录
/// @param type 打点类型
/// @param adt adt
/// @param tab1 附加参数1
/// @param tab2 附加参数2
- (void)addUserBehaviorLogItemWithType:(WMBMSUserBehaviorType)type Adt:(NSString *)adt Tab1:(NSString *)tab1 Tab2:(NSString *)tab2;


/// 添加一条内购打点记录
/// @param type 打点类型
/// @param pdi 内购商品ID
/// @param pdt 内购商品类型 ex: 消耗型、非消耗型、续期订阅
/// @param pdn 内购商品名称
/// @param odn 后台订单编号
/// @param tab1 附加参数1
/// @param tab2 附加参数2
- (void)addLogItemWithType:(WMBMSUserPurchaseType)type productId:(NSString *)pdi productType:(NSString *)pdt productName:(NSString *)pdn orderNumber:(NSString *)odn tab1:(NSString *)tab1 tab2:(NSString * _Nullable)tab2;


@end

NS_ASSUME_NONNULL_END
